<?php
/**
 * WAVESELF FRAMEWORK
 * 
 * Waveself framework is an open source project released under New BSD license.
 * Waveself Engine Team did this in order to help you as ourselves with different
 * but still easy to use and learn approach. 
 * 
 * Please read ALL licenses before you do any changes or to say, before using current software
 * read our licence which can be found under waveself framework root folder.
 * 
 * If you did not recieve copy of licence, contact us immediately and we will send you copy.
 * 
 * @category   Waveself
 * @package    System Configuration
 * @author     Nevio Vesic <nevio.vesic@gmail.com>
 * @copyright  Waveself Framework NPO 2009-2010
 * @license    https://code.google.com/p/waveself-framework/source/browse/trunk/LICENSE   New-BSD
 * @version    0.1a
 */


/** Initialize settings object. DO NOT REMOVE THIS! Each and every single settings file must start like this 
    and must be instanceof stdClass() */
$settings = new stdClass();


/** MAIN FRAMEWORK CONFIGURATION
    ------------------------------------------------------------------------------------------  **/

/** ENGINE STATUS
 *  ------------------------------------------
 *  Waveself engine status. With this option you can
 *  set if current engine is offline, online or unavailable.
 *  Remember that this will make changes globally. To all existing projects!
 *  
 *  @example   ON              Engine is Offline
 *  @example   OFF             Engine is Online
 *  @example   UNAVAILABLE     Engine is Unavailable
 * */
$settings -> engine -> status = ON;


/** ENGINE BASE URL
 *  ------------------------------------------
 *  Base engine url. You don't need to change or touch this. You can but you don't need to :)
 * */
$settings -> engine -> base -> url = $_SERVER['HTTP_HOST'];


/** ENGINE ENVIROMENT HANDLER
 *  ------------------------------------------
 *  Due to ajax and new approach to load pages on the fly without any refreshes
 *  you are able to set engine enviroment to AJAX or SIMPLE. Simple will load
 *  pages normally when AJAX will load pages like on gmail have.
 *  
 *  @example   Waveself_Engine::ENV_SIMPLE     Simple Page Request Handler
 *  @example   Waveself_Engine::ENV_AJAX       Ajax Page Request Handler      !Caution
 *  
 *  TODO : Implement ENV_AJAX. Current version does not support it!
 * */
$settings -> engine -> enviroment -> handler = Waveself_Engine::ENV_SIMPLE;


/** WAVESELF ENGINE CREDITS
 *  ------------------------------------------
 *  Please don't touch this settings bellow. It's not yours so you can't take credit for it!
 *  You can add yourself as coautor if you did any changes to engine itself!
 * */
$settings -> engine -> author    = 'Nevio Vesic <nevio.vesic@gmail.com>';
$settings -> engine -> team      = 'Waveself Engine Team';
$settings -> engine -> coauthors = array();
$settings -> engine -> copyright = 'Waveself Framework NPO 2009-2010';
$settings -> engine -> version   = 1.0;

/** ------------------------------------------------------------------------------------------ **/


/** FRAMEWORK PROJECTS CONFIGURATION
    ------------------------------------------------------------------------------------------  **/

/** WAVESELF MAIN PROJECT
 *  ------------------------------------------
 *  Definition of main waveself project. For more informations how-to 
 *  setup project navigate yourself to /docs and select projects 
 *  documentation section
 * */
$settings -> project[] = array(
	
	/** Is project default one? **/
	'default'   => TRUE,
	
    /** This is IMPORTANT! Project instance name... Keep it alphabetical and lowercased! */
	'instance'  => Waveself_Engine::PAK_MAIN,

	/** project type? */
	'type'      => Waveself_Engine::PROJ_STANDARD,

	/** Project access key */
	'accessKey' => NULL,
	
	/** project base path */
	'path'      => WAVESELF_PROJECTS_PATH . Waveself_Engine::PAK_MAIN . DIRECTORY_SEPARATOR
);

/** WAVESELF BACKEND PROJECT
 *  ------------------------------------------
 *  Definition of main backend waveself project. This is a framework administration.
 *  For more informations how-to setup project navigate yourself to /docs and select 
 *  projects documentation section
 * */
$settings -> project[] = array(
	
	/** Is project default one? **/
	'default'   => FALSE,

    /** This is IMPORTANT! Project instance name... Keep it alphabetical and lowercased! */
	'instance'  => Waveself_Engine::PAK_BACKEND,

	/** project type? */
	'type'      => Waveself_Engine::PROJ_SUBDOMAIN,

	/** Subdomain access key is? Default is backend a.k.a. http://backend.example.com */
	'accessKey' => Waveself_Engine::PAK_BACKEND,
	
	/** project base path */
	'path'      => WAVESELF_PROJECTS_PATH . Waveself_Engine::PAK_BACKEND . DIRECTORY_SEPARATOR
);

/** ------------------------------------------------------------------------------------------ **/

/** FRAMEWORK SECURITY CONFIGURATION
    ------------------------------------------------------------------------------------------  **/

/** ------------------------------------------------------------------------------------------ **/

/** FRAMEWORK UPDATES CONFIGURATION
    ------------------------------------------------------------------------------------------  **/

/** ENGINE UPDATE STATE
 *  ------------------------------------------
 *  Tell us would you like to get your project auto updated?
 * 
 *  @example    1     Auto Update Enabled
 *  @example    0     Auto Update Disabled
 * */
$settings -> engine -> update -> state = OFF;


/** ENGINE UPDATE ON THE FLY ACCESS
 *  ------------------------------------------
 *  Tell us does engine have priviledge to auto update without explicit permissions
 *  or you would like to manually update what you want?
 * 
 *  @example    1     Auto Update Access Enabled
 *  @example    0     Auto Update Access Disabled
 * */
$settings -> engine -> update -> otf  = OFF;

/** ------------------------------------------------------------------------------------------ **/

/** EOF. Do not add closing php tag! **/